document.querySelector('.btn').addEventListener(
  'click',() => {
    alert('登录成功！');
  }
)

for (let i = 0; i < 20; i++) {
  console.log('this is main');
}